package com.ruoran.user.xml.adapter;import jakarta.xml.bind.annotation.adapters.XmlAdapter;import java.time.LocalDateTime;import java.time.format.DateTimeFormatter;public class LocalDateTimeAdapter extends XmlAdapter<String, LocalDateTime> {    @Override    public LocalDateTime unmarshal(String v) {        return LocalDateTime.parse(v, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));    }    @Override    public String marshal(LocalDateTime v) {        return v.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));    }}